<extend name="Base/common"/>
<block name="header">
    <include file="Public/nav"/>
</block>
<block name="body">
    <script src="__JS__/appstore.js"></script>
    <!--模板详情-->
    <div class="container">
        <div class="clearfix">

            <div class="clearfix">
                <div class="col-xs-9">
                    <div class="common-block">
                        <div class="col-xs-3 text-center">
                            {$data.cover|display_cover=160,160,'-detail'}
                        </div>
                        <div class="col-xs-9">
                            <article class="article">
                                <header>
                                    <h1 class="text-center">{$data.title|text} —— {$data.latest_version|display_version}<div class="pull-right">
                                        {:W('Appstore/Watch/render',array($data))}&nbsp;&nbsp;
                                        {:W('Weibo/Share/shareBtn',array('param'=>array('title'=>$data['title'],'content'=>$data['ad'],'img'=>getThumbImageById($data['cover'],160,160),'from'=>$MODULE_ALIAS,'site_link'=>U('appstore/index/plugindetail',array('id'=>$data['id']))),'text'=>'<span class="share-btn"><i class="icon-share"></i> </span>'))}</div>
                                    </h1>
                                    <dl class="dl-inline">
                                        <dt>上架时间：</dt>
                                        <dd>{$data.update_time|date='Y-m-d',###}</dd>

                                        <dt></dt>
                                        <dd class="pull-right"><span class="label label-success">版本：{$data.latest_version|display_version}</span>
                                            <span class="label label-danger"> 下载次数： {$data.total_download_count}</span>
                                            <span class="label label-danger"> 销量： {$data.sales}</span>
                                        </dd>
                                    </dl>


                                    <dl class="dl-inline" style="position: relative">
                                        <dt>开发者：</dt>
                                        <dd>
                                            <eq name="data.author" value=""><a href="{$data.user.space_url}">{$data.user.nickname}</a>
                                                <else/>
                                                {$data.author}
                                            </eq>
                                        </dd>
                                        <dt>
                                            上传者
                                        </dt>
                                        <dd>
                                            <a href="{$data.user.space_url}">{$data.user.nickname}</a>
                                        </dd>


                                    </dl>
                                    <if condition="check_auth('Appstore/Admin/manage') OR $data['uid'] eq is_login()">
                                        <div class="pull-right" ><a href="{:U('admin/addplugin',array('id'=>$data['id']))}">编辑</a></div>
                                    </if>
                                </header>
                                <div class="article-content">
                                    <!--详情图片和简略信息-->
                                    <div class=" tem_line_1 plug_item">
                                        <div class="">

                                        </div>


                                    </div>
                                </div>

                            </article>
                        </div>
                        <section class="abstract">
                            <strong>兼容版本</strong>： {$data.compat|decode_compat_by_str}
                            <neq name="data.rely" value=""><span class="label label-danger" ><strong>依赖模块</strong>： {$data.rely}</span></neq>
                        </section>
                        <div style="position: relative">
                            <div style="width: 200px;position: absolute;right: 0;bottom: 0">
                                <div class="with-padding" style="font-size: 14px"> 售价：{$versions[0]['id']|display_fee}
                                </div>
                                <div class="with-padding">
                                    {$data.versions.0.id|display_download='btn
                                    btn-block btn-primary'}
                                </div>
                            </div>
                        </div>
                        <include file="_detail_comment"/>


                    </div>
                </div>


                <div class="col-xs-3 ">
                    <div class="common-block">
                        <include file="Index/_side"/>
                    </div>
                </div>
            </div>


        </div>
    </div>


</block>